<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <base th:href="@{/}">
    <meta charset="UTF-8">
    <title>添加公告</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
    <link href="/css/style1.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
    <script src="/js/jquery.min.js"></script>
</head>
<style>
    label{
        text-align: center;
    }
    .form-group{
        margin-bottom: 10px;
    }
</style>
<body>
<!-- 加载通用头部 -->
<div th:insert="~{admin/header1}"></div>
<main id="main">
    <section class="breadcrumbs">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <ol>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">添加公告</a></li>
                </ol>
            </div>
        </div>
    </section>
    <section class="inner-page">
<div class="container">
    <div class="card mb-3">
        <div class="card-header">
            <h3 class="card-title">添加公告</h3>
        </div>
        <div class="card-body">
            <form th:action="@{/admin/addBoard}" method="post"  style="margin-top: 10px;">
                <div class="form-group d-flex">
                    <label for="title" class="text-left"  >标&nbsp;&nbsp;&nbsp;&nbsp;题:</label>
                    <div class="col-sm-4 col-md-4">
                    <input type="text" id="title" name="title" class="form-control" style="margin-left: 20px;"required>
                    </div>
                    <label for="fbr" class=" text-left" style="margin-left: 220px;" >发布人：</label>
                    <div class="col-sm-4 col-md-4">
                    <input type="text" id="fbr" name="fbr" class="form-control " style="margin-left: 20px;" required>
                    </div>
                </div>
                <div class="form-group">
                    <label for="content">内&nbsp;&nbsp;&nbsp;&nbsp;容:</label>
                    <textarea id="content" name="content" class="form-control" rows="8" required></textarea>
                </div>
                <div class="form-group text-center">
                    <button type="submit" class="btn btn1">添加公告</button>
                    <button type="reset" class="btn btn2">重置</button>
                </div>
            </form>
        </div>
    </div>
</div>
    </section>
</main>
    <script src="/js/bootstrap.bundle.min.js"></script>
</body>

</html>